package cn.school.entity;

import java.io.Serializable;

//和表s_subject对应
public class Subject implements Serializable {
    private long id,gradeid;
    private int classhour;//
    private String name;
    public Subject(){

    }
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getGradeid() {
        return gradeid;
    }

    public void setGradeid(long gradeid) {
        this.gradeid = gradeid;
    }

    public int getClasshour() {
        return classhour;
    }

    public void setClasshour(int classhour) {
        this.classhour = classhour;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "课程{" +
                "id=" + id +
                ", gradeid=" + gradeid +
                ", classhour=" + classhour +
                ", name='" + name + '\'' +
                '}';
    }
}
